/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.sys;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.hk.shop.entity.category.HkShopCategory;
import org.hibernate.validator.constraints.Length;

/**
 * 乐购分类推荐Entity
 * @author 罗天文
 * @version 2018-09-25
 */
public class HkShopRecCategory extends DataEntity<HkShopRecCategory> {
	
	private static final long serialVersionUID = 1L;
	private String rank;		// 序号
	private HkShopCategory category;		// 类别id
	
	public HkShopRecCategory() {
		super();
	}

	public HkShopRecCategory(String id){
		super(id);
	}

	@Length(min=0, max=11, message="序号长度必须介于 0 和 11 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
	public HkShopCategory getCategory() {
		return category;
	}

	public void setCategory(HkShopCategory category) {
		this.category = category;
	}
	
}